package demo.dao;

import java.io.Serializable;
import java.util.List;


public interface GenericDao<T, ID extends Serializable> {

	ID save(T t);
	
	List<T> queryAll();
	
	List<T> queryByNameParam(String queryString, String[] paramNames, Object[] values);
	
	T queryById(ID id);
	
	void delete(ID id);
	
	void delete(T t);

	void update(T t);

	List<T> queryByHql(String queryString);

	
	
}
